﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Crd3013p.aspx.cs" Inherits="Updms.Crd.Crd3013p" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms" TagPrefix="chartfx7" %>
<%@ Register Assembly="ChartFX.WebForms.Adornments" Namespace="ChartFX.WebForms.Adornments"	TagPrefix="chartfxadornments" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms.Galleries" TagPrefix="chartfx7galleries" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Crd3013p] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Crd3013p" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<Triggers>
				<asp:PostBackTrigger ControlID="ibtn_excel1"/>
				<asp:PostBackTrigger ControlID="ibtn_excel2"/>
			</Triggers>
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_ftp" Text="아이폰" runat="server" CssClass="ibtn ibtn_phone" OnClientClick="return chkFtpTransfer();" OnClick="ibtn_ftp_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_close" Text="닫기" runat="server" CssClass="ibtn ibtn_close" OnClientClick="javascript:window.close();return false;"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 리스트셋 시작 -->
			<table id="table_list_set" cellspacing="0" cellpadding="0" width="100%" border="0">
				<tr>
					<td colspan="2" style="width:55%;padding-right:10px;vertical-align:top;">
						<!-- 카드별 총액 시작 -->
						<div class="sub_title_icon"><asp:Literal id="ltr_stitle_total_amount_by_card" Text="카드별 총액" runat="server" /><asp:linkbutton id="ibtn_excel1" runat="server" CssClass="sbtn sbtn_excel div_right" OnClick="ibtn_excel1_Click"></asp:linkbutton></div>
						
						<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="True" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="View_Order">
							<Columns>
							</Columns>
						</asp:GridView>
						<table class="table_gridview" cellspacing="0" border="0" id="GridView1_nodata" style="border-collapse:collapse;" runat="server">
							<tr>
								<td><div id="no_data"></div></td>
							</tr>
						</table>
						<!-- 카드별 총액 끝 -->
						<br />
					</td>
					<td style="width:45%;vertical-align:top;">
						<!-- 계정별 전월대비 증감액 시작 -->
						<div class="sub_title_icon"><asp:Literal id="ltr_stitle_in_out_amount_by_account" Text="계정별 전월대비 증감액" runat="server" /><asp:linkbutton id="ibtn_excel2" runat="server" CssClass="sbtn sbtn_excel div_right" OnClick="ibtn_excel2_Click"></asp:linkbutton></div>
						<asp:GridView ID="GridView2" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView2_RowDataBound" DataKeyNames="Pre_Total,This_Total" ShowFooter="true">
							<Columns>
								<asp:BoundField DataField="Account_Nm" HeaderText="계정" HtmlEncode="False">
									<ItemStyle HorizontalAlign="Left" Width="40%" />
								</asp:BoundField>
								<asp:BoundField DataField="Pre_Total" HeaderText="전월(X)" Visible="false" />
								<asp:BoundField DataField="Pre_Total_Link" HeaderText="전월" HeaderStyle-Font-Underline="true" HtmlEncode="False">
									<ItemStyle HorizontalAlign="Right" Width="20%" />
								</asp:BoundField>
								<asp:BoundField DataField="This_Total" HeaderText="당월(X)" Visible="false" />
								<asp:BoundField DataField="This_Total_Link" HeaderText="당월" HeaderStyle-Font-Underline="true" HtmlEncode="False">
									<ItemStyle HorizontalAlign="Right" Width="20%" />
								</asp:BoundField>
								<asp:BoundField DataField="Diff_Total" HeaderText="증감액" HtmlEncode="False" DataFormatString="{0:#,###,##0}">
									<ItemStyle HorizontalAlign="Right" Width="20%" />
								</asp:BoundField>
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
						<!-- 계정별 전월대비 증감액 끝 -->
						<br />
					</td>
				</tr>
			</table>
			<table cellspacing="0" cellpadding="0" width="100%" border="0">
				<tr>
					<td style="padding-right:10px;" valign="top">
						<!-- 카드별분포도 시작 -->
						<table id="table_chart_pie_detail" class="default" runat="server">
							<tr>
								<td><div class="sub_title_icon"><asp:Literal id="ltr_stitle_distribution_chart_by_card" Text="카드별분포도" runat="server" /></div></td>
							</tr>
							<tr>
								<td class="td_box">
									<chartfx7:Chart ID="chart_pie_detail" runat="server" Palette="DarkPastels.Pastels" Height="200px" ImageSettings-Interactive="False" Width="300px">
										<AxisY Title-Text="">
											<Grids Major-Style="Solid" Interlaced="True"></Grids>
											<LabelsFormat CustomFormat="###,###,##0" />
										</AxisY>

										<AxisX Title-Text="">
										<Grids Major-Visible="False"></Grids>
										</AxisX>

										<AllSeries Gallery="Pie" PointLabels-BackColor="Transparent" PointLabels-Font="Tahoma, 8pt" PointLabels-Visible="False"></AllSeries>

										<LegendBox Dock="Right"></LegendBox>

										<MainPane AxisY-Title-Text=""></MainPane>
										<SpecialObjects>
											<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
												Type="None">
											</chartfxadornments:SimpleBorder>
											<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
												ColorFrom="Transparent" EffectArea="0">
											</chartfxadornments:GradientBackground>
											<chartfx7galleries:Pie ExplodingMode="All" Shadows="True" SliceSeparation="10">
											</chartfx7galleries:Pie>
										</SpecialObjects>	
										<View3D Enabled="True" />
										<Series>
											<chartfx7:SeriesAttributes MarkerStep="3" />
										</Series>
									</chartfx7:Chart>
								</td>
							</tr>
						</table>
						<!-- 카드별분포도 끝 -->
					</td>
					<td style="padding-right:10px;">
						<!-- 증가계정분포도 시작 -->
						<table id="table_chart_inc_pie" class="default" runat="server">
							<tr>
								<td><div class="sub_title_icon"><asp:Literal id="ltr_stitle_distribution_chart_by_in_account" Text="증가계정분포도" runat="server" /></div></td>
							</tr>
							<tr>
								<td class="td_box">
									<chartfx7:Chart ID="chart_inc_pie" runat="server" Palette="DarkPastels.Pastels" Height="200px" ImageSettings-Interactive="False" Width="300px">
										<AxisY Title-Text="">
											<Grids Major-Style="Solid" Interlaced="True"></Grids>
											<LabelsFormat CustomFormat="###,###,##0" />
										</AxisY>

										<AxisX Title-Text="">
										<Grids Major-Visible="False"></Grids>
										</AxisX>

										<AllSeries Gallery="Pie" PointLabels-BackColor="Transparent" PointLabels-Font="Tahoma, 8pt" PointLabels-Visible="False"></AllSeries>

										<LegendBox Dock="Right" Visible="false"></LegendBox>

										<MainPane AxisY-Title-Text=""></MainPane>
										<SpecialObjects>
											<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
												Type="None">
											</chartfxadornments:SimpleBorder>
											<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
												ColorFrom="Transparent" EffectArea="0">
											</chartfxadornments:GradientBackground>
											<chartfx7galleries:Pie ExplodingMode="All" Shadows="True" SliceSeparation="10">
											</chartfx7galleries:Pie>
										</SpecialObjects>	
										<View3D Enabled="True" />
										<Series>
											<chartfx7:SeriesAttributes MarkerStep="3" />
										</Series>
									</chartfx7:Chart>
								</td>
							</tr>
						</table>
						<!-- 증가계정분포도 끝 -->
					</td>
					<td>
						<!-- 감소계정분포도 시작 -->
						<table id="table_chart_dec_pie" class="default" runat="server">
							<tr>
								<td><div class="sub_title_icon"><asp:Literal id="ltr_stitle_distribution_chart_by_out_account" Text="감소계정분포도" runat="server" /></div></td>
							</tr>
							<tr>
								<td class="td_box">
									<chartfx7:Chart ID="chart_dec_pie" runat="server" Palette="DarkPastels.Pastels" Height="200px" ImageSettings-Interactive="False" Width="300px">
										<AxisY Title-Text="">
											<Grids Major-Style="Solid" Interlaced="True"></Grids>
											<LabelsFormat CustomFormat="###,###,##0" />
										</AxisY>

										<AxisX Title-Text="">
										<Grids Major-Visible="False"></Grids>
										</AxisX>

										<AllSeries Gallery="Pie" PointLabels-BackColor="Transparent" PointLabels-Font="Tahoma, 8pt" PointLabels-Visible="False"></AllSeries>

										<LegendBox Dock="Right" Visible="False"></LegendBox>

										<MainPane AxisY-Title-Text=""></MainPane>
										<SpecialObjects>
											<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
												Type="None">
											</chartfxadornments:SimpleBorder>
											<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
												ColorFrom="Transparent" EffectArea="0">
											</chartfxadornments:GradientBackground>
											<chartfx7galleries:Pie ExplodingMode="All" Shadows="True" SliceSeparation="10">
											</chartfx7galleries:Pie>
										</SpecialObjects>	
										<View3D Enabled="True" />
										<Series>
											<chartfx7:SeriesAttributes MarkerStep="3" />
										</Series>
									</chartfx7:Chart>
								</td>
							</tr>
						</table>
						<!-- 감소계정분포도 끝 -->
					</td>
				</tr>
			</table>
			<!-- 리스트셋 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>
<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>

<script type="text/javascript" language="javascript" defer="defer">
	//상세조회 팝업
	function viewDetailList(card_cd, account, ym) {
		var url = "../Crd/Crd3011p.aspx?page_mode=P&kw1=" + card_cd + "&kw2=" + ym + "&kw3=" + account;
		popupPage(url, 800, 600, 'yes', 'no', 'yes');
	}

	//FTP전송
	function chkFtpTransfer() {
		msgBox.confirm(getMsg(MSG_CFM_025), doFtpTransfer); //전송하시겠습니까?
		return false;
	}
</script>

</body>
</html>